@prefix-cls: supplier-update;
@import './updateStyles.theme.less';

.overflow() {
  overflow-y: hidden;
  overflow-x: hidden;
}

.displayDirection() {
  display: flex;
  flex-direction: column;
}

@keyframes aptitude-inout {
  0% {
    right: -80px;
    opacity: 0;
  }

  100% {
    right: 0px;
    opacity: 1;
  }
}

.@{prefix-cls} {
  &-row {
    width: 100%;
    height: 100%;
    position: relative;
    .overflow();

    .ant-image-preview-operations-wrapper,
    .ant-image-preview-mask,
    .ant-image-preview-wrap {
      position: absolute;
    }

    &-col {
      width: 100%;
      height: 100%;
      .overflow();
    }
  }

  /** 表单 */
  &-supplierFormLabel {
    .ant-form-item-label {
      width: 190px;
    }

    .renderFileBox {
      padding-left: 190px;
    }

    &-minBoxTitle {
      margin: 20px 100px;
      font-size: 20px;
      border-left: 5px solid;
      padding: 0 8px;
      font-weight: 600;
    }

    .ant-form {
      height: 100%;
    }

    &-formBoxRoot {
      height: 100%;
      display: flex;
      flex-direction: column;

      .list-table {
        margin: 5px 0px 5px 100px;

        .ant-table {
          margin: 0px !important;

          .ant-form-item {
            margin-bottom: 0px !important;
          }
        }
      }
    }
  }

  // 大事件时间轴样式
  &-memoirTimelineSty {
    padding: 5px 10px;

    .ant-timeline-item {
      padding-bottom: 5px;

      .ant-timeline-item-content {
        margin: 0px 0px 0px 20px;
      }
    }

    &-titleTimeBoxSty {
      font-weight: 600;
      font-size: 16px;
    }

    &-bodyBoxsty {
      margin: 10px 0px;
      box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.65);
      border-radius: 4px;
    }

    // 变更记录
    &-changeBodyBox {
      border-radius: 10px;
    }
  }

  // 相关资质列表卡片
  &-aptitudeCardList {
    width: 100%;
    background: #f1f1f1;
    margin: 5px 0px;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 10px;

    &-titleColTime {
      font-weight: 600;
      text-align: right;
    }
  }

  &-aptitudeCardList:first-child {
    margin-top: 5px;
  }

  // 操作按钮渐入渐出动画
  &-operateBtnAnimarion {
    position: relative;
    overflow: hidden;

    &-editDelOtherBtn {
      position: absolute;
      right: -80px;
      top: 5%;

      .ant-btn {
        width: 80px;
        border-bottom-left-radius: 20px;
        border-top-left-radius: 20px;
        border: none;
        background: #949494;
        color: #fff;
      }
    }
  }

  &-operateBtnAnimarion:hover {
    box-shadow: 0px 0px 5px 1px #d4d4d4;

    .supplier-update-operateBtnAnimarion-editDelOtherBtn {
      right: 0px;
      animation: aptitude-inout 0.4s ease-in;
    }
  }

  &-selectBankModal {
    .ant-form {
      .ant-form-item {
        margin-bottom: 10px;
      }
    }

    .list-table {
      .ant-table-wrapper {
        .ant-table {
          margin: 0px !important;
        }
      }

      .ant-pagination {
        margin: 0px !important;
      }
    }

    &-RowBox {
      height: 100%;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    &-ColFlexAuto {
      flex: auto;
      overflow: hidden;
    }
  }
}

/**
* 滚动加载滚动条外部容器样式
*/
.bankSelectScrollBox {
  height: 100%;
  overflow: hidden auto;

  .ant-list {
    .ant-list-item {
      padding: 3px 8px;
    }
  }
}

.bankSelectScrollBox::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

.bankSelectScrollBox::-webkit-scrollbar-thumb {
  -webkit-transition: all 0.25s;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.25s;
  border-radius: 0px;
}

.bankSelectScrollBox::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}
